package com.example.study.ui

import androidx.compose.material.Scaffold
import androidx.compose.material.rememberScaffoldState
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.example.study.ui.page.RouteName
import com.example.study.ui.view.ToolShowListView

/**
 *  created by 20300
 *   on 2022/4/13
 *   describe:
 */
@Composable
fun NavPage() {
    val navCtrl = rememberNavController()
    val  scaffoldState = rememberScaffoldState()

    Scaffold {
        NavHost(navController = navCtrl, startDestination = RouteName.ToolListPage){
            composable(route = RouteName.ToolListPage){
                ToolShowListView(navCtrl,scaffoldState)
            }
        }
    }

}